using System.Data.Entity.Migrations;
using XHD.WXZJ.Migrations.SeedData;
using EntityFramework.DynamicFilters;

namespace XHD.WXZJ.Migrations
{
    internal sealed class Configuration : DbMigrationsConfiguration<WXZJ.EntityFramework.WXZJDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
            ContextKey = "WXZJ";
        }

        protected override void Seed(WXZJ.EntityFramework.WXZJDbContext context)
        {
            context.DisableAllFilters();
            new InitialDataBuilder(context).Build();
        }
    }
}
